package com.kaishengit.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.kaishengit.dao.EmployeeDao;
import com.kaishengit.pojo.Employee;
@Service
@Transactional
public class EmployeeService {
	private EmployeeDao employeeDao;
	
	public Employee save(Employee employee){
		return employeeDao.findNameAndPassword(employee);
	}
	
	@Autowired
	public void setEmployeeDao(EmployeeDao employeeDao) {
		this.employeeDao = employeeDao;
	}
	
}
